package cn.xiangxu.com.webclient_rest_client.controller;

import cn.xiangxu.com.webclient_rest_client.proxy.ReflectionsProperties;
import cn.xiangxu.com.webclient_rest_client.rest_server_api.IStudentApi;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 王杨帅
 * @create 2018-08-23 23:06
 * @desc
 **/
@RestController
@RequestMapping(value = "/stu")
@Slf4j
public class TestController {
    @Autowired
    IStudentApi iStudentApi;

    @Autowired
    ReflectionsProperties reflectionsProperties;

    @GetMapping(value = "/test01")
    public String test01() {
        System.out.println(reflectionsProperties);
        iStudentApi.listStudent();
        return "hello boy";
    }

}

